STEP 11: Let's return user_answer to ask_for_password()! We'll need it for our while loop.

  • In LOGIC, click on and drag Return Statement inside get_user_input().
  • Then, change the variable from my_var to response.
  • Now our ask_for_password function will have access to the user's response!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)